# for i in range(1,4):
# 	for j in range(1,4):
# 		if i * j > 2:
# 			continue
# 		print(i * j)
#         print(i) 
"""                                                         i                   j                           k
                        1                                   1                   1                           6
                    1	2	1                               2                   1-2     1                   5
                1	2	4	2	1                           3                   1-4     2-1                 4
            1 	2	4	8	4	2	1                       4                   1-8     4-1                 3
        1	2	4	8	16	8	4	2	1                   5                   1-16    8-1                 2
    1	2	4	8	16	32	16	8	4	2	1               6                   1-32    16-1                1
1	2	4	8	16	32	64	32	16	8	4	2	1           7                   1-64    32-1                0

"""
# for i in range(1,8):
#     #空格
#     for k in range(7 - i):
#         print(" ", end = "  ")
#         #打印1-7列
#     for j in range(0, i):
#         print(f'{2 ** j:<3d}', end = "")
#         #打印8-13列
#     for j in range(i - 2, -1, -1):
#          print(f'{2 ** j:<3d}', end = "")
#     print()


# n = int(input())
# for i in range(1, n + 1):
#     #空格
#     for _ in range(5 - i):
#         print(" ",end = "")
#     for j in range(2 * i - 1):
#         print("*",end = "")
#     print()
# for i in range(4 , 0, -1):
#     for _ in range(5 - i):
#         print(" ",end = "")
#     for j in range(2 * i - 1):
#         print("*", end = "")
#     print()

# n = int(input())
# for i in range(1, n + 1):
#     for k in range(abs(i - (n // 2 + 1))):
#         print(" ", end = "")
#     j = 1
#     while j <= i and j <= n + 1 - i:
#         print("*", end = " ")
#         j += 1
#     print()
#最小公倍数
# x, y = map(int, input().split(" "))
# MAX = max(x, y)
# MIN = min(x, y)
# i = MAX
# while True:
#     if i % MAX == 0 and i % MIN == 0:
#         print(i)
#         break
#     i += 1
# x = int(input())
# sum = 0
# while x != 1:
#     for i in range(2, x):
#         if x % i == 0:
#             sum += x
#             x //= 2
#             break
# if sum == x:
#     print("Yes")
# else:
#     print("No")

# i = int(input())
# #分子
# fenzi = 1
# sum = 0
# for k in range(1, i + 1):
#     #分母
#     fenmu = 2 * i - 1
#     #计算一个数的值
#     num = fenzi / fenmu
#     #累加起来
#     sum += num
#     fenzi *= -1
# print(sum)



# #完全数
# num = int(input())
# #用于判断累加后的结果是否等于num
# the_sum = 0
# #求出所有因子的和
# for i in range(1, num):
#     if num % i == 0:
#         the_sum += i
# #判断是否是完全数
# if the_sum == num:
#     print("Yes")
# else:
#     print("No")

# #计算Π
# #输入i的值
# i = int(input())
# #分子为1
# fenzi = 1

# the_sum = 0
# for j  in range(1, i + 1):
#     #分母
#     fenmu = 2 * j - 1
#     #求出每次循环i对应的值
#     num = fenzi / fenmu
#     #累加结果
#     the_sum += num
#     #更新分子
#     fenzi = fenzi * -1
# #计算出来的Π
# pi = 4 * the_sum
# print(pi)

# #计算e
# i = int(input())
# #分子
# fenzi = 1
# #累加
# the_sum = 0
# for j in range(1, i + 1):
#     #计算分母
#     fenmu = 1
#     for k in range(1, j + 1):
#         fenmu *= k
#     num = fenzi / fenmu
#     the_sum += num
# #最终e的值
# e = 1 + the_sum
# print(e)

# #组合问题1
# for i in range(1, 8):
#     for j in range(i, 8):
#         print(f'{i,j}', end = " ")
#     print()

"""
123 124 132 134 142 143 
213 214 231 234 241 243 
312 314 321 324 341 342
412 413 421 423 431 432
24
"""

# #组合问题2
# #计数
# count = 0
# #控制百位数字
# for i in range(1, 5):
#     #控制十位数字
#     for j in range(1,5):
#         #控制个位数字
#         for k in range(1, 5):
#             #一旦出现相等数字就跳出本次循环执行下一次
#             if i == j or i == k or j == k:
#                 continue
#             count += 1
#             baiwei = i * 100
#             shiwei = j * 10
#             print(baiwei + shiwei + k, end = " ")
#     print()
# print(count)
            
"""                                                         i                   j                           k
                        1                                   1                   1                           6
                    1	2	1                               2                   1-2     1                   5
                1	2	4	2	1                           3                   1-4     2-1                 4
            1 	2	4	8	4	2	1                       4                   1-8     4-1                 3
        1	2	4	8	16	8	4	2	1                   5                   1-16    8-1                 2
    1	2	4	8	16	32	16	8	4	2	1               6                   1-32    16-1                1
1	2	4	8	16	32	64	32	16	8	4	2	1           7                   1-64    32-1                0

"""
# for i in range(1, 8):
#     #打印空格
#     for _ in range(7 - i):
#         print(" ",end = "  ")
#     #打印数字1-7列
#     for j in range(0, i):
#         print(f'{2 ** j:<3d}',end = "")
#     #打印数字8-13列
#     for j in range(i - 2, -1, -1):
#         print(f'{2 ** j:<3d}',end = "")
#     print()


"""
111 222 333 444
11 22 33
"""
# count = 0
# #控制百位
# for i in range(1, 5):
#     #控制十位
#     for j in range(1, 5):
#         #控制个位
#         for k in range(1, 5):
#             #过滤掉重复的数字
#             if i == j or i == k or j == k:
#                 continue
#             count += 1
#             baiwei = i * 100
#             shiwei = j * 10
#             print(baiwei + shiwei + k, end = " ")
#     print()

# print(count)

"""                 i   k(|i-5|)    j
    *               1       4       1
   ***              2       3       3
  *****             3       2       5
 *******            4       1       7
*********           5       0       9
 *******            6       1       7
  *****             7       2       5
   ***              8       3       3
    *               9       4       1
"""
# n = int(input())
# for i in range(1, n // 2 + 2):
#     for k in range(n // 2 + 1- i):
#         print(" ",end = "")
#     for j in range(0, 2 * i - 1):
#         print("*",end = "")
#     print()
# for i in range(n // 2 + 2, n + 1):
#     for k in range(i - n // 2 - 1):
#         print(" ",end = "")
#     for j in range((n - i) * 2 + 1, 0, -1):
#         print("*", end = "")
#     print()



"""                i   k(|i-5|)    j
    *               1       4       1
   ***              2       3       3
  *****             3       2       5  2 * i -1
 *******            4       1       7
*********           5       0       9

 *******            6       1       7
  *****             7       2       5
   ***              8       3       3
    *               9       4       1
"""
n = int(input())
for i in range(1, n // 2 + 2):
    for k in range(n // 2 + 1 - i):
        print(" ", end = "")
    for j in range(0, 2 * i - 1):
        print("*", end = "")
    print()
for i in range(n // 2 + 2, n + 1):
    for k in range(i - n // 2 - 1):
        print(" ", end = "")
    for j in range((n - i) * 2 + 1, 0, -1):
        print("*", end = "")
    print()
    